package com.google.code.jtasks.server.dao;

import com.google.code.jtasks.common.data.Task;
import com.google.common.base.Optional;

import java.util.List;

/**
 * Basic DAO interface for {@link Task} objects.
 */
public interface TaskDAO {
    String saveTask(Task task);
    Optional<Task> loadTask(String id);
    boolean deleteTask(String id);
    List<Task> loadAllTasks();
}
